import { createApp } from 'vue'
import './style.css'
import router from './router'
import pinia from './store'
import ElementPlus from 'element-plus'
import App from './App.vue'

import '@/styles/index.css'

// 全局变量
const globalProperty = {
  msg: '这是全局变量'
}

const app = createApp(App)

// 注册全局变量
app.config.globalProperties.$globalProperty = globalProperty

app.use(router).use(pinia).use(ElementPlus)

app.mount('#app')

// 获取环境变量的方式
// console.log(import.meta.env.VITE_BASE_API);
